package com.zby.model.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
public enum RoleEnum implements BaseEnum {
    ROLE_ENUM(0, "普通用户"),
    ROLE_ADMIN(1, "管理员");

    @EnumValue
    private final Integer code;

    @EnumValue
    private final String name;
}
